<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store,no-cache">
    <meta name="Handheldfriendly" content="true">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>商家详情</title>
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/css_1.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/reset.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/s.css">

    <script src="{MODULE_URL}template/mobile/style/style1/static/js/jquery-1.7.1.min.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/dp.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/layer.js"></script>
    <script>
    function bd_encrypt(gg_lat, gg_lon) // 百度地图测距偏差 问题修复
    {
        var x_pi = 3.14159265358979324 * 3000.0 / 180.0;
        var x = gg_lon;
        var y = gg_lat;
        var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * x_pi);
        var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * x_pi);
        var bd_lon = z * Math.cos(theta) + 0.0065;
        var bd_lat = z * Math.sin(theta) + 0.006;
        dingwei("{php echo $this->createMobileUrl('business',array('op' => 'list'))}", bd_lat, bd_lon);
    }
    navigator.geolocation.getCurrentPosition(function(position) {
        bd_encrypt(position.coords.latitude, position.coords.longitude);
    });
    </script>
    <script>
    $(function() {
        if ($('#shangjia_tab').length > 0) /*判断是否存在这个html代码*/ {
            $('#shangjia_tab li').width(100 / $('#shangjia_tab li').length + '%');
            $('.page-center-box').css('top', '0.9rem');
        } //头部切换tab结束

    });
    </script>
</head>

<body>
    <header>
        <a href="{php echo $this->createMobileUrl('business',array('op' => 'list'))}"><i class="icon-goback"></i></a>
        <div class="title">{$item['sjname']}</div>
    </header>
    <ul id="shangjia_tab">
        <li style="width: 20%;"><a href="{php echo $this->createMobileUrl('business',array('op' => 'detail' ,'id' => $id))}" class="on">首页</a></li>
        <li style="width: 20%;"><a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon' ,'dpid' => $id,'operation' => 'list'))}">团购</a></li>
<!--         <li style="width: 20%;"><a href="/mobile/shop/goods/shop_id/94.html">商品</a></li>
        <li style="width: 20%;"><a href="/mobile/shop/coupon/shop_id/94.html">优惠</a></li> -->
        <li style="width: 20%;"><a href="{php echo $this->createMobileUrl('business',array('op' => 'rank','dpid' => $id,'operation' => 'list'))}">评价</a></li>
    </ul>
    <div id="shangjia" class="app_shangjia page-center-box" style="bottom: 0px; top: 0.9rem;">
        <div id="scroll" style="padding-bottom:0;">
            <div class="banner"><img src="{$thumb}" width="100%"></div>
            <!--商家首页infor部分开始-->
            <div class="infor mb10">
                <div class="inforOne">
                    <div class="fl">
                        <img src="{$thumb}" width="50" height="50">
                        <a href=""><h3 class="overflow_clear">{$item['sjname']}</h3>
                        <p class="black9"><span class="spxq_qgpstarBg"><span class="spxq_qgpstar spxq_qgpstar{$count}"></span></span><b class="fontcl1">{$count}</b>人评价</p></a>
                    </div>
                    <div class="fr pointer">
                        <a class="btn" href="{php echo $this->createMobileUrl('business',array('op' => 'rank','dpid' => $id,'operation' => 'add'))}">评价商家</a>
                    </div>
                    <div class="clear"></div>
                </div>
                <!-- 地址 -->
                <div class="order-adress mb10">
                    <div class="order-shop">
                        <div class="wz">
                            <p class="big black9"><i class="ico_1"></i>地址：{$item['address']}</p>
                            <p class="big black9"><i class="ico_2"></i>电话：{$item['mobile']}</p>
                        </div>
                        <a class="tel" href="tel:{$item['mobile']}"></a>
                    </div>
                    <!-- <div class="mall-our">
                        <a class="mall-fen" href=""><em class="ico ico_1"></em>到这去</a>
                        <a class="mall-fen" href=""><em class="ico ico_2"></em>关注商家</a>
                    </div> -->
                </div>
                <!--分店地址开始-->
                <script>
                $(document).ready(function() {
                    $(".fendianAddr_switch .fendianAddr_list").each(function(e) {
                        $(this).click(function() {
                            $(this).parent().find(".fendianAddr_list").removeClass("on");
                            $(this).addClass("on");
                            $(".fendianAddr_nr_box .fendianAddr_nr").each(function(h) {
                                if (e == h) {
                                    $(this).parent().find(".fendianAddr_nr").hide();
                                    $(this).show();
                                } else {
                                    $(this).hide();
                                }
                            });
                        });
                    });
                });
                </script>
            </div>
            <!--商家首页infor部分结束-->
            <!--商家活动列表开始-->
            <div class="hdList">
            {loop $list $goods}
                <div class="hdList_nr_border">
                    <a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon','operation' => 'detail','gid' => $goods['id']))}">
                        <div class="fl hdList_bq"><span class="listBox_tag bg_1">团</span></div>
                        <div class="hdList_wz">
                            <div class="img fl"><img src="{php echo tomedia($goods['thumb'])}" width="90" height="80"></div>
                            <div class="wz">
                                <p class="bt overflow_clear">{$goods['title']}</p>
                                <p class="black9"><span class="price fontcl1">￥{$goods['marketprice']}</span>
                                    <del>原价:￥{$goods['productprice']}</del> 已售{$goods['sold']}</p>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </a>
                </div>
            {/loop}
                <!-- <div class="hdList_nr_border">
                    <a href="/mobile/tuan/detail/tuan_id/18.html">
                        <div class="fl hdList_bq"></div>
                        <div class="hdList_wz">
                            <div class="img fl"><img src="/attachs/2015/04/25/thumb_553b4ba03279d.jpg" width="90" height="80"></div>
                            <div class="wz">
                                <p class="bt overflow_clear"> 【3店通用】爱丁堡足道 </p>
                                <p class="black9"><span class="price fontcl1">￥79</span>
                                    <del>原价:￥179</del> 已售2002</p>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </a>
                </div> -->
            </div>
            <a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon' ,'dpid' => $id,'operation' => 'list'))}" class="hdList_more black9 mb10">更多<em class="linkIco"></em></a>
            <!-- <div class="hdList">
                <div class="hdList_nr_border">
                    <a href="/mobile/coupon/detail/coupon_id/21.html">
                        <div class="fl hdList_bq"><span class="listBox_tag bg_5">券</span></div>
                        <div class="hdList_wz">
                            <div class="img fl"><img src="/attachs/2015/04/24/thumb_5539c130b65de.jpg" width="90" height="80"></div>
                            <div class="wz">
                                <p class="bt overflow_clear">仅售138元，价值208元超值套餐！</p>
                                <p class="black9">到期时间：2017-04-24</p>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </a>
                </div>
                <div class="hdList_nr_border">
                    <a href="/mobile/coupon/detail/coupon_id/20.html">
                        <div class="fl hdList_bq"></div>
                        <div class="hdList_wz">
                            <div class="img fl"><img src="/attachs/2015/04/24/thumb_5539c094480a0.jpg" width="90" height="80"></div>
                            <div class="wz">
                                <p class="bt overflow_clear">仅售298元，价值659元8-10人餐！</p>
                                <p class="black9">到期时间：2017-04-24</p>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </a>
                </div>
            </div>
            <a href="/mobile/coupon/index.html" class="hdList_more black9 mb10">更多<em class="linkIco"></em></a> -->
            <div class="hdList mb10">
                <div>
                    <div class="fl hdList_bq"><span class="listBox_tag bg_4">详</span></div>
                    <div class="hdList_wz">
                        <p class="bt">营业时间：{$item['businesstime']}</p>
                    </div>
                    <div class="clear"></div>
                </div>
                <p class="black9"></p>
                <div class="linkIco_nr black9"><em class="linkIco"></em></div>
            </div>
            <!--商家活动列表结束-->
        </div>
    </div>
    {template 'style/style1/footer'}
</body>

</html>
